package com.zhonghui.mes.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 生产作业对象 mes_job_assembly
 *
 * @author zhonghui
 * @date 2022-05-21
 */
@ApiModel("生产作业对象")
public class MesJobAssemblyVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty("编号")
    private Long id;

    /** 作业名称 */
    @Excel(name = "作业名称")
    @ApiModelProperty("作业名称")
    private String jobName;

    /** 生产计划 */
    @Excel(name = "生产计划")
    @ApiModelProperty("生产计划")
    private String planNumber;

    /** 计划排产id */
    @Excel(name = "计划排产id")
    @ApiModelProperty("计划排产id")
    private Long plannedProductionId;

    /** 计划排产 */
    @Excel(name = "计划排产")
    @ApiModelProperty("计划排产")
    private String serialNo;

    /** 物料id */
    @Excel(name = "物料id")
    @ApiModelProperty("物料id")
    private Long materialId;

    /** bomId */
    @Excel(name = "bomId")
    @ApiModelProperty("bomId")
    private Long bomId;

    /** 产品 */
    @Excel(name = "产品")
    @ApiModelProperty("产品")
    private String materialName;

    /** 规格 */
    @Excel(name = "规格")
    @ApiModelProperty("规格")
    private String materialModel;

    /** 型号 */
    @Excel(name = "型号")
    @ApiModelProperty("型号")
    private String materialSpecifications;

    /** 单位 */
    @Excel(name = "单位")
    @ApiModelProperty("单位")
    private String materialUnit;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("开始时间")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("结束时间")
    private Date endTime;

    /** 待产数量 */
    @Excel(name = "待产数量")
    @ApiModelProperty("待产数量")
    private Double producedQuantity;

    /** 已产数量 */
    @Excel(name = "已产数量")
    @ApiModelProperty("已产数量")
    private Double quantityProduced;

    /** 生产数量 */
    @Excel(name = "生产数量")
    @ApiModelProperty("生产数量")
    private Double quantity;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("生产日期")
    private Date manufactureDate;

    /** 作业状态 */
    @ApiModelProperty("作业状态")
    private Integer status;

    /** 生产作业明细 */
    @ApiModelProperty("生产作业明细")
    private List<MesJobAssemblyItemVo> mesJobAssemblyItemList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setJobName(String jobName)
    {
        this.jobName = jobName;
    }

    public String getJobName()
    {
        return jobName;
    }
    public void setPlanNumber(String planNumber)
    {
        this.planNumber = planNumber;
    }

    public String getPlanNumber()
    {
        return planNumber;
    }
    public void setPlannedProductionId(Long plannedProductionId)
    {
        this.plannedProductionId = plannedProductionId;
    }

    public Long getPlannedProductionId()
    {
        return plannedProductionId;
    }
    public void setSerialNo(String serialNo)
    {
        this.serialNo = serialNo;
    }

    public String getSerialNo()
    {
        return serialNo;
    }
    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public Long getBomId() {
        return bomId;
    }

    public void setBomId(Long bomId) {
        this.bomId = bomId;
    }

    public Long getMaterialId()
    {
        return materialId;
    }
    public void setMaterialName(String materialName)
    {
        this.materialName = materialName;
    }

    public String getMaterialName()
    {
        return materialName;
    }
    public void setMaterialModel(String materialModel)
    {
        this.materialModel = materialModel;
    }

    public String getMaterialModel()
    {
        return materialModel;
    }
    public void setMaterialSpecifications(String materialSpecifications)
    {
        this.materialSpecifications = materialSpecifications;
    }

    public String getMaterialSpecifications()
    {
        return materialSpecifications;
    }
    public void setMaterialUnit(String materialUnit)
    {
        this.materialUnit = materialUnit;
    }

    public String getMaterialUnit()
    {
        return materialUnit;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setProducedQuantity(Double producedQuantity)
    {
        this.producedQuantity = producedQuantity;
    }

    public Double getProducedQuantity()
    {
        return producedQuantity;
    }
    public void setQuantityProduced(Double quantityProduced)
    {
        this.quantityProduced = quantityProduced;
    }

    public Double getQuantityProduced()
    {
        return quantityProduced;
    }
    public void setQuantity(Double quantity)
    {
        this.quantity = quantity;
    }

    public Double getQuantity()
    {
        return quantity;
    }
    public void setManufactureDate(Date manufactureDate)
    {
        this.manufactureDate = manufactureDate;
    }

    public Date getManufactureDate()
    {
        return manufactureDate;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public List<MesJobAssemblyItemVo> getMesJobAssemblyItemList()
    {
        return mesJobAssemblyItemList;
    }

    public void setMesJobAssemblyItemList(List<MesJobAssemblyItemVo> mesJobAssemblyItemList)
    {
        this.mesJobAssemblyItemList = mesJobAssemblyItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobName", getJobName())
            .append("planNumber", getPlanNumber())
            .append("plannedProductionId", getPlannedProductionId())
            .append("serialNo", getSerialNo())
            .append("materialId", getMaterialId())
            .append("materialName", getMaterialName())
            .append("materialModel", getMaterialModel())
            .append("materialSpecifications", getMaterialSpecifications())
            .append("materialUnit", getMaterialUnit())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("quantity", getQuantity())
            .append("producedQuantity", getProducedQuantity())
            .append("quantityProduced", getQuantityProduced())
            .append("manufactureDate", getManufactureDate())
            .append("status", getStatus())
            .append("mesJobAssemblyItemList", getMesJobAssemblyItemList())
            .toString();
    }
}
